package com.lottery.material.service.portal.report.impl;

import com.lottery.material.dao.base.BaseDao;
import com.lottery.material.dao.portal.report.ReportTypeDictDao;
import com.lottery.material.entity.report.ReportTypeDict;
import com.lottery.material.service.base.impl.BaseServiceImpl;
import com.lottery.material.service.portal.report.ReportTypeDictService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:    举报类型字典服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-10 20:34
 */
@Service
@Slf4j
public class ReportTypeDictServiceImpl extends BaseServiceImpl<ReportTypeDict, Integer> implements ReportTypeDictService {

    @Autowired
    private ReportTypeDictDao reportTypeDictDao;

    @Override
    public BaseDao<ReportTypeDict, Integer> getBaseDao() {
        return reportTypeDictDao;
    }

    /**
     * description: 根据举报范围查询
     * author sunny
     * createDate 2019-04-10 下午 8:37
     * @param reportScope
     * @return
     */
    @Override
    public List<ReportTypeDict> findByReportScope(Integer reportScope) {
        return reportTypeDictDao.findByReportScope(reportScope);
    }
}
